import React, { Component } from 'react'


import './index.scss';

export default class Map extends Component {


    componentDidMount() {

        var map = new window.BMap.Map("container");
        var point = new window.BMap.Point(116.404, 39.915);
        map.centerAndZoom(point, 15);
    }

    render() {
        return (
            <div className="map-wrapper">
                <div id="container"></div>
            </div>
        )
    }
}